<?php $this->display('header') ?>
<body class="gray-bg">

<div class="middle-box text-center loginscreen animated fadeInDown">
    <div>
        <div>
            <h1 class="logo-name" style="font-size: 40px;margin: 15%;letter-spacing: 5px;">后台</h1>
        </div>
        <form class="m-t" id="form_name" name="form_name">
            <div class="form-group">
                <input type="text" id="username"  name="username" class="form-control" placeholder="账号" required="">
            </div>
            <div class="form-group">
                <input type="password" name="passwd" id="passwd" class="form-control" placeholder="密码" required="">
            </div>
            <input type="hidden" name="url_class" id="url_class" value="{php echo gWebUrl('admin/login')}">
            <button type="submit" class="btn btn-primary block full-width m-b" id="submit">登录</button>
        </form>
    </div>
</div>

<script>
    //提交表单
    $('#submit').click(function() {
        if (!$(this).hasClass('disabled')) {
            $(this).addClass('disabled');
            //验证
            postFormData('form_name');
            setTimeout("$('#submit').removeClass('disabled')", 500);
            return false;
        }
    });
</script>
</body>

</html>